package com.example.articleservice.entity;

import java.io.Serial;
import java.util.Date;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
/**
 * (Category)表实体类
 *
 * @author makejava
 * @since 2024-03-24 13:47:50
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("category")
public class Category implements Serializable{
    @Serial
    private static final long serialVersionUID = 5191738738711179992L;
    //主键@TableId
    @TableId(value = "cid",type = IdType.AUTO)
    private Long cid;

    //分类名
    private String name;
    //描述
    //由于desc是mysql关键字，所以这里我们需要进行转义处理
    @TableField("`desc`")
    private String desc;
    //创建时间
    private Date createtime;
    //修改时间
    private Date updatetime;
    //状态->1=正常、0=禁用
    private Integer state;



}

